package com.roc.service.riskRule;

import java.util.Map;

import com.roc.bean.TransLimitBean;
import com.roc.pojo.Operators;
import com.roc.service.ServiceException;

public interface ITransLimitService {
	/**
	 * 根据风控规则模板添加特定商户的风控规则
	 * @param bean
	 * @return
	 * @throws ServiceException
	 */
	public Map<String,Object> addNewRiskRuleToMcht(TransLimitBean bean,Operators op)throws ServiceException;
	/**
	 * 修改原风控规则
	 * @param bean
	 * @return
	 * @throws ServiceException
	 */
	public int updateRiskRule(TransLimitBean bean,Operators op)throws ServiceException;
	/**
	 * 查找bean
	 * @param bean
	 * @return
	 * @throws ServiceException
	 */
	public TransLimitBean findBean(TransLimitBean bean)throws ServiceException;
	/**
	 * 查找flag是否存在于现有规则
	 * @param bean
	 * @return
	 * @throws ServiceException
	 */
	String checkFlag(TransLimitBean bean) throws ServiceException;
}
